import $http from "./requst";

// 微信分享
export const Wechatshare = (data) =>
  $http({ url: "/common/Wechatshare", method: "post", data });
// 合同记录
export const Record = (data) =>
  $http({ url: "/api/Record", method: "post", data });
// 合同详情
export const orderDetails = (data) =>
  $http({ url: "/api/Record/details", method: "post", data });

// 支付记录
export function getUserRecord(data) {
  return $http({
    url: `/api/My/getUserRecord`,
    method: "POST",
    data,
  });
}
// 个人中心
export function My(data) {
  return $http({
    url: `/api/My`,
    method: "POST",
    data,
  });
}
// 轮播图
export function getBanner(data) {
  return $http({
    url: `/api/Index/getBanner`,
    method: "POST",
    data,
  });
}
// 帮助中心列表
export function getArt(data) {
  return $http({
    url: `/api/Index/getArt`,
    method: "POST",
    data,
  });
}
// 帮助详情
export function artDetails(data) {
  return $http({
    url: `/api/Index/artDetails`,
    method: "POST",
    data,
  });
}
// 获取金额
export function getPayMoney(data) {
  return $http({
    url: `/api/Contract/getPayMoney`,
    method: "POST",
    data,
  });
}
// 首次创建合同
export function contractSave(data) {
  return $http({
    url: `/api/Contract/contractSave`,
    method: "POST",
    data,
  });
}

// 二次签约
export function signingSave(data) {
  return $http({
    url: `/api/Record/signingSave`,
    method: "POST",
    data,
  });
}

// 申请退款
export function refund(data) {
  return $http({
    url: `/api/My/refund`,
    method: "POST",
    data,
  });
}
// 取消合同
export function cancelContract(data) {
  return $http({
    url: `/api/Record/cancelContract`,
    method: "POST",
    data,
  });
}
// 同意 不同意
export function agreeCancel(data) {
  return $http({
    url: `/api/Record/agreeCancel`,
    method: "POST",
    data,
  });
}
// 平台协议
export function getXy(data) {
  return $http({
    url: `/api/Index/getXy`,
    method: "POST",
    data,
  });
}
